﻿@model IEnumerable<ZDSoft.UPMS.Model.BusinessPart.Course>
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/PageCreater/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/PageCreater/Scripts/PageCreater.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var strColumn = "ID,课程编号,true,text,notnull,"
                           + "Name,课程名,true,text,notnull,"
                           + "lesson,课时,false,text,notnull,"
                           + "WorkTiems,布置作业次数,false,text,notnull,"
                           + "IsActive,状态,false,text|激活!true|注销!false,notnull,"
                           + "Opreate,操作,false,null,null";
            var strOpreate = "修改,/Course/Update,true,切换状态,/Course/UpdateIsActive,false";
            CreateIndexPage("/Course/GetPaged", strColumn, strOpreate);
            $("#Search").click(function () {
                var c = $("#ID").val();
                CreateIndexPage("/Course/GetAllByID?CourseID=" + c + "", strColumn, strOpreate);

            })

        });

    
       
    </script>
</head>
<body>
    <div class="Content">
        <div id="Top">
            <div id="divCreateUrl">
                <p>
                    <a href="Create">新建</a>
                </p>
                    @using (Html.BeginForm())
                { 
                   <p>课程编号：@Html.TextBox("ID")<input type="button" value="查找" style="width:60px;  border:inherit; height:28px;  background-image: url('../Content/Images/but3.gif');" id="Search" /></p> 
                }
            </div>
            <div id="divSearch">
            </div>
        </div>
        <div id="tabInfo">
        </div>
        <div id="pageIndex" class="pageIndex" style="margin-top: 5px; width: 95%">
        </div>
    </div>
</body>
</html>
